package com.xiaobai.spike.sdk.lang;

/**
 * @author dingfeng.xiao
 */
public enum Errors {
    SYS_UNKNOWN_ERROR(-1, "系统未知错误"),
    USER_CODE_EXITS(-1, "用户名重复"),
    USER_NOT_EXITS(-1,"用户不存在"),
    INSER_USER_ORG_ERROR(-1,"新增用户失败"),
    ACCESS_TOKEN_ERROR(403, "access_token已失效"),
    REFRESH_TOKEN_ERROR(403, "access_token已失效")
    ;

    private final Integer errorCode;
    private final String errorMsg;

    /**
     * @param errorCode
     * @param errorMsg
     */
    Errors(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
